package cn.haohaowo.dao;

import cn.haohaowo.annotation.MyBatisRepository;
import cn.haohaowo.entity.Account;
import org.apache.ibatis.annotations.Param;

/**
 * Created by luwancai on 18/5/19.
 * DESC:
 */
@MyBatisRepository
public interface AccountDao {

    Account getAccountById(@Param("bookId") int bookId);

    Account queryAccount(@Param("userName") String userName, @Param("password") String password);

    int insertAccount(Account account);

    int updateAccount(Account account);

}
